popovermenu: Avoid a critical
authorMatthias Clasen <mclasen@redhat.com>
Sun, 2 Aug 2020 17:09:00 +0000 (13:09 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 2 Aug 2020 17:09:00 +0000 (13:09 -0400)
commitf8a303b0e53293f8f077a8bdf72b1d9389761b5d
tree3f26a09996c0d7ee89928b1e0ebc6c9f494d154a
parentddda963f8107c5e7464e3b105c47c6cdcb78bb4a
popovermenu: Avoid a critical

While we guarantee that the widget that a controller
is attached to stays around while it is handling an event,
the same is not true for the root that the widget belongs
to. In corner cases (such as clicking "Close" in the
fallback window menu), it may already be gone.
Avoid a critical in that case.

Fixes: #2998
gtk/gtkpopovermenu.c